from get_pic_url import  get_url
from download_pic import download_file
from get_Max_pageNum import get_max_pageNum
from gethtml import gethtml

if __name__ == '__main__':
    # 下载地址
    sava_url='E:\picture'
    # 请求地址
    url = 'https://www.elysium.pro/Photobooks/Album/720'
    # 保存的页面html地址
    save_html='networkhtml.html'
    # 请求页面数据
    gethtml(url,save_html)
    # 获取最大的页数
    maxPage=get_max_pageNum(save_html)
    # 获取url
    for i in range(1,maxPage):
        url=url+'?pageNumber='+str(i)
        get_url(url)
    # with open('url.txt','r',encoding='utf') as f:
    #     for line in f:
    #         # 下载
    #         download_file(line,sava_url)

